import request from "@/utils/request";

// 获取离散型数据统计
export function getScatterField(fieldName, order) {
  return request({
    url: `/statisticsAction/getScatterField?fieldName=${fieldName}&order=${order}`,
    method: "get",
  });
}

// 获取区间型数据统计
export function getSectionField(data) {
  return request({
    url: "/statisticsAction/getSectionField",
    method: "post",
    data: data,
  });
}

// 获取落地价 出厂价
export function getFinalManuFacturePrice() {
  return request({
    url: `/statisticsAction/getFinalManuFacturePrice`,
    method: "get",
  });
}

// 获取油耗
export function getFuelConsumption() {
  return request({
    url: `/statisticsAction/getFuelConsumption`,
    method: "get",
  });
}

// 获取汽车配置信息
export function getCarInfomation(query) {
  return request({
    url: `/statisticsAction/getCarInfomation`,
    method: "get",
    params: query,
  });
}
